<div class="title">
  <h1>Armeen</h1>
</div>

<div class="content">
  <table>
    <tr>
      <th class="empty"></th>
      <th class="heading">Essenzen</th>
      <th class="heading">Kristalle</th>
      <th class="heading">Kraftsteine</th>
      <th class="heading">Goldharz</th>
    </tr>

    <% for army in @armies %>
      <tr class="line">
        <td class="description"><%= link_to(army.hero.name, attack_army_path(@attack, army)) %></td>
        <td class="def" id="right"><%=h n army.essenzen %></td>
        <td class="def" id="right"><%=h n army.kristalle %></td>
        <td class="def" id="right"><%=h n army.kraftsteine %></td>
        <td class="def" id="right"><%=h n army.goldharz %></td>

        <td class="button"><%= link_to 'Edit', edit_attack_army_path(@attack, army) %></td>
        <td class="button"><%= link_to 'Destroy', attack_army_path(@attack, army), :confirm => 'Are you sure?', :method => :delete %></td>
      </tr>
    <% end %>
  </table>
</div>

<% content_for :navigation do %>
  <li>
    <%= link_to 'Neue Armee', new_attack_army_path(@attack) %>
  </li>
<% end %>